package cn.JHai.service;

import cn.JHai.domain.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.ArrayList;

public interface UserService {


    public boolean insert(User user) ;

    public ArrayList<User> findAll();

    public User find(int uid) ;

    public User findUser(String name,String password);

    public boolean delete(int id) ;

    public boolean update(User user) ;
}
